<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<script src="http://code.jquery.com/jquery-latest.js"></script>
		<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.12.0.css" type="text/css" media="screen" />
		<script type="text/javascript" src="http://code.jquery.com/qunit/qunit-1.12.0.js"></script>
		<script type="text/javascript" src="../build/astrochart.js"></script>	
		
		<script>
			window.onload = function( ) {							
				
				
				test( "validate", function( ) {
					 var chart = new astrology.Chart( 'paper2', 1, 1);					
					 throws( function(){ chart.radix() }, "Must throw error to pass.");
					 throws( function(){ chart.radix({}) }, "Must throw error to pass.");
					 throws( function(){ chart.radix({planets:{}, cusps:{}}) }, "Must throw error to pass.");
					 throws( function(){ chart.radix({planets:{}, cusps:[1,2,3]}) }, "Must throw error to pass.");					 
					 throws( function(){ chart.radix({planets:{Moon:0, Sun:30}, cusps:[1,2,3,4,5,6,7,8,9,10,11,12]})}, "Must throw error to pass.");
				});
				
				
									
				
				
				
				
																				
			};// onload
		</script>
	</head>
	<body>
		<h1 id="qunit-header">chart.js tests</h1>
		<h2 id="qunit-banner"></h2>
		<div id="qunit-testrunner-toolbar"></div>
		<h2 id="qunit-userAgent"></h2>
		<ol id="qunit-tests"></ol>
		<div id="qunit-fixture">
			test markup, will be hidden
		</div>
	</body>
</html>